import request from "@/utils/request";

export const getAllInforelease = async data => {
  return await request({
    url: "/inforelease/community-announcement/loadAllByQuery",
    method: "post",
    data
  });
};
export const addNotice = async data => {
  return await request({
    url: "/inforelease/community-announcement/add",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data
  });
};
export const getNotice = async data => {
  return await request({
    url: "/inforelease/community-announcement/loadOne",
    method: "get",
    params: data
  });
};
export const editNotice = async data => {
  return await request({
    url: "/inforelease/community-announcement/modify",
    method: "post",
    data
  });
};
export const deleteNotice = async data => {
  return await request({
    url: "/inforelease/community-announcement/delete",
    method: "get",
    params: data
  });
};
